﻿using System;
using System.Globalization;
using WindowsForms.AOnline.WindowsForm.Annotations;
using WindowsForms.AOnline.WindowsForm.Resources;

namespace WindowsForms.AOnline.WindowsForm
{
    static class Program
    {
        [UsedImplicitly]
        private static DBOptionHelper _dbOptionHelper;
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
           // _dbOptionHelper = new DBOptionHelper();
            DevExpress.Skins.SkinManager.EnableFormSkins();
          //  DevExpress.UserSkins.BonusSkins.Register();
            System.Windows.Forms.Application.EnableVisualStyles();
            System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
            InitData();
            System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("vi-VN");
            //                                                       {
            //                                                           NumberFormat =
            //                                                           {
            //                                                               CurrencySymbol = _dbOptionHelper.CurrencySymbol,
            //                                                               CurrencyDecimalSeparator = _dbOptionHelper.CurrencyDecimalSeparator,
            //                                                               CurrencyGroupSeparator = _dbOptionHelper.CurrencyGroupSeparator,
            //                                                               CurrencyDecimalDigits = int.Parse(_dbOptionHelper.CurrencyDecimalDigits)
            //                                                           }
                                                                       
            //                                                       };
            System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(ResourceHelper.ResourceLanguage);
            System.Windows.Forms.Application.Run(new MainRibbonForm());
        }

        static void InitData()
        {
            ResourceHelper.ResourceLanguage = "vi-VN";
            ResourceHelper.InitResource();
        }
    }
}
